//
//  JsonEngine.h
//  TestARC
//
//  Created by Rayco on 12-10-17.
//  Copyright (c) 2012年 Test. All rights reserved.
//

#import <Foundation/Foundation.h>
#include "MKNetworkKit.h"

typedef void (^JsonEngineBlock)(id jsonResponse);
@interface AppsJsonEngine : MKNetworkEngine {
    
}

+ (id)sharedEngine;

+ (id)sharedEngine:(NSString *)host;

- (void)submitRequest:(NSString *)url params:(NSMutableDictionary *)paramsDic onCompletion:(JsonEngineBlock)completionBlock onError:(MKNKErrorBlock)errorBlock method:(NSString *)method;

- (void)submitRequest:(NSString *)url params:(NSMutableDictionary *)paramsDic onCompletion:(JsonEngineBlock)completionBlock onError:(MKNKErrorBlock)errorBlock method:(NSString *)method emptyCache:(BOOL)emptyCache;


- (NSDictionary *)toValue:(NSString *)json;



@end
